SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
CREATE VIEW dbo.vwbCupos
AS
SELECT     dbo.tb_cupos.CicloLectivo, dbo.tb_Organizaciones.CUISE, dbo.tb_GrupoDeCarreras.descripcion AS Carrera
FROM         dbo.tb_cupos INNER JOIN
                      dbo.tb_Organizaciones ON dbo.tb_cupos.Organizacion = dbo.tb_Organizaciones.idOrganizaciones INNER JOIN
                      dbo.tb_GrupoDeCarreras ON dbo.tb_cupos.Carrera = dbo.tb_GrupoDeCarreras.idGrupoCarrera
GO
GRANT SELECT ON  [dbo].[vwbCupos] TO [Alumnos]
GRANT SELECT ON  [dbo].[vwbCupos] TO [Coordinaciones]
GRANT SELECT ON  [dbo].[vwbCupos] TO [SoloVer]
GO
